From f5cca19a5e7dc44956418b34c6f009b158fdb1ab Mon Sep 17 00:00:00 2001 From: Kurt Kremitzki Date: Sat, 25 May 2024 16:11:03 +0200 Subject: [PATCH] Fixes GCC8 FTBFS due to included copy of SMESH. Forwarded: https://github.com/FreeCAD/FreeCAD/pull/9848 Applied-Upstream: https://github.com/FreeCAD/FreeCAD/commit/ab4f3028bd4b580a3b11be49a7a445d48d4c8c7c Last-Update: 2023-12-09 Gbp-Pq: Name 1020-fix_gcc8_ftbfs.patch --- src/3rdParty/salomesmesh/inc/SMDS_MeshElement.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/3rdParty/salomesmesh/inc/SMDS_MeshElement.hxx b/src/3rdParty/salomesmesh/inc/SMDS_MeshElement.hxx index ca561328..d97a37bc 100644 --- a/src/3rdParty/salomesmesh/inc/SMDS_MeshElement.hxx +++ b/src/3rdParty/salomesmesh/inc/SMDS_MeshElement.hxx @@ -221,8 +221,8 @@ struct TIDTypeCompare { // WARNING: this comparator makes impossible to store both nodes and elements in the same set // because there are nodes and elements with the same ID. Use TIDTypeCompare for such containers. struct TIDCompare { - bool operator () (const SMDS_MeshElement* e1, const SMDS_MeshElement* e2) const - { return e1->GetID() < e2->GetID(); } + template bool operator () (const T* e1, const T* e2) const + { return static_cast(e1)->GetID() < static_cast(e2)->GetID(); } }; #endif -- 2.30.2